package com.zutassociation.system.service.impl;

import com.zutassociation.system.domain.Reply;
import com.zutassociation.system.mapper.ReplyMapper;
import com.zutassociation.system.service.ReplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 评论 服务层实现
 * @author 黄玉东
 * @version 1.0
 * @date 2021/5/10 11:11
 */
@Service
public class ReplyServiceImpl implements ReplyService {

    @Autowired
    private ReplyMapper replyMapper;

    @Override
    public Reply selectReplyById(Long replyId) {
        return replyMapper.selectReplyById(replyId);
    }

    @Override
    public Reply selectReplyByLastId(Long lastId) {
        return replyMapper.selectReplyByLastId(lastId);
    }

    @Override
    public Reply selectReplyFromId(Long fromId) {
        return replyMapper.selectReplyFromId(fromId);
    }

    @Override
    public Reply selectReplyToId(Long toId) {
        return replyMapper.selectReplyToId(toId);
    }

    @Override
    public Reply selectReplyForumId(Long forumId) {
        return replyMapper.selectReplyForumId(forumId);
    }

    @Override
    public Reply selectReplyTrendsId(Long trendsId) {
        return replyMapper.selectReplyTrendsId(trendsId);
    }

    @Override
    public List<Reply> selectReplyList(Reply reply) {
        return replyMapper.selectReplyList(reply);
    }

    @Override
    public int insertReply(Reply reply) {
        return replyMapper.insertReply(reply);
    }

    @Override
    public int updateReply(Reply reply) {
        return replyMapper.updateReply(reply);
    }

    @Override
    public int updateReplyReport(Reply reply) {
        return replyMapper.updateReplyReport(reply);
    }

    @Override
    public int updateReplyStatus(Reply reply) {
        return replyMapper.updateReplyStatus(reply);
    }

    @Override
    public int updateReplyClick(Reply reply) {
        return replyMapper.updateReplyClick(reply);
    }

    @Override
    public int updateReplyFabulous(Reply reply) {
        return replyMapper.updateReplyFabulous(reply);
    }

    @Override
    public int deleteReplyById(Long replyId) {
        return replyMapper.deleteReplyById(replyId);
    }

    @Override
    public int deleteReplyByIds(Long[] replyIds) {
        return replyMapper.deleteReplyByIds(replyIds);
    }

    @Override
    public int deleteReplyByReport1(Long[] replyIds) {
        return replyMapper.deleteReplyByReport1(replyIds);
    }

    @Override
    public int deleteReplyByReport2(Long[] replyIds) {
        return replyMapper.deleteReplyByReport2(replyIds);
    }
}
